//
//  HomeCellXib.h
//  MyBlog
//
//  Created by NCS on 16/12/7.
//  Copyright © 2016年 YSL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomeCellModel.h"
#import "CollectionCell.h"
#import "UIImageView+WebCache.h"

static NSString *CollectionViewCellIdentifier = @"homeCellCollectionCell";

@interface HomeCell : UITableViewCell <UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout> {
    float imageSize;
}
@property (weak, nonatomic) IBOutlet UIImageView *cellAvatar;
@property (weak, nonatomic) IBOutlet UILabel *cellName;
@property (weak, nonatomic) IBOutlet UILabel *cellTime;
@property (weak, nonatomic) IBOutlet UIImageView *cellAccessory;
@property (weak, nonatomic) IBOutlet UILabel *cellDevice;
@property (weak, nonatomic) IBOutlet UILabel *cellContent;
@property (weak, nonatomic) IBOutlet YSLIndexedCollectionView *cellImages;

@property (strong, nonatomic) HomeCellModel *homeCellModel;
@property (strong, nonatomic) NSDictionary *data;
@property (strong, nonatomic) NSIndexPath *dataIndex;

@property (strong, nonatomic) NSArray *images;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionHeightConstraint;

- (void)setCellData:(HomeCellModel *)model;
- (void)updateConstraints;

@end
